<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
//余券宝表
class Super_partner_model extends CI_Model{
    function __construct() {
        parent::__construct();
        $this->table = 'super_partner';
    }
    function insert($data){
        $this->db->insert($this->table, $data);
        if($this->db->affected_rows()){
            return $this->db->insert_id();
        }else{
            return 0;
        }
    }
}
